import { createRouter, createWebHashHistory } from "vue-router";
import App from "../App.vue";
const Router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: "/",
      name: "index",
      component: () => import("/src/views/index/index.vue"),
    },
    {
      path: "/user",
      name: "user",
      component: App,
      children: [
        {
          path: "/user/login",
          name: "userLogin",
          component: () => import("/src/views/user/login.vue"),
        },
      ],
    },
    {
      path: "/file",
      name: "file",
      component: App,
      children: [
        {
          path: "/file/upload",
          name: "upload",
          component: () => import("/src/views/file/upload.vue"),
        },
      ],
    },
  ],
});

export default Router;
